package com.itheima.a03staticdemo03;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();

        Student stu1 = new Student("zhangsan", 18, "男");
        Student stu2 = new Student("lisi", 20, "男");
        Student stu3 = new Student("wangwu", 19, "男");

        list.add(stu1);
        list.add(stu2);
        list.add(stu3);

        int ageMax = StudentUntil.getAgeMax(list);
        System.out.println(ageMax);
    }
}
